from django.contrib import admin

# Register your models here.

from . import models
from .models import Article

#配置admin后台页面
#把Aticle注册到后台管理页面去

# admin.site.register(models.Article)
admin.site.site_header = '多福园博客管理系统'
admin.site.site_title = '博客管理'


class ArticleAdmin(admin.ModelAdmin):

    list_display = ['id', 'title', 'content',] 
    fields = ['title', 'content']
    list_filter = ('title', 'content')


admin.site.register(Article,ArticleAdmin)